nested vmx: enable VMCS shadowing feature
authorDongxiao Xu <dongxiao.xu@intel.com>
Fri, 25 Jan 2013 09:19:55 +0000 (10:19 +0100)
committerDongxiao Xu <dongxiao.xu@intel.com>
Fri, 25 Jan 2013 09:19:55 +0000 (10:19 +0100)
commit15e64e205e121c1eb18b6a9c1953c82443e4cd5a
treec5c38470c62e0b3e45aae5e38727d55386485bc4
parentddddba4388aa342da48045da253155db73f2daac
nested vmx: enable VMCS shadowing feature

The current logic for handling the non-root VMREAD/VMWRITE is by
VM-Exit and emulate, which may bring certain overhead.

On new Intel platform, it introduces a new feature called VMCS
shadowing, where non-root VMREAD/VMWRITE will not trigger VM-Exit,
and the hardware will read/write the virtual VMCS instead.
This is proved to have performance improvement with the feature.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Acked-by: Jun Nakajima <jun.nakajima@intel.com>
Acked-by Eddie Dong <eddie.dong@intel.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h